from django import forms
from django.forms import ModelForm  
from .models import Level, Sound
from django.db.models import Q

class LevelForm(forms.ModelForm):
    class Meta:
        model = Level
        fields = '__all__'
        widgets = {
            'ios_md5': forms.HiddenInput(),
            'android_md5': forms.HiddenInput(),
        }

class SoundForm(forms.ModelForm):
    class Meta:
        model = Sound
        fields = '__all__'
        widgets = {
            'md5': forms.HiddenInput(),
            'md5_android': forms.HiddenInput(),
        }